
package entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.OneToMany;

@Entity
public class StakeholderFood extends Stakeholder implements Serializable {
    @OneToMany (cascade={CascadeType.PERSIST})
    private List<Outlet> outlet = new ArrayList<Outlet>();
    @OneToMany (cascade={CascadeType.PERSIST})
    private List<OutletManager> outletManager = new ArrayList<OutletManager>();

    public List<Outlet> getOutlet() {
        return outlet;
    }

    public void setOutlet(List outlet) {
        this.outlet = outlet;
    }
    
    public void addOutlet(Outlet outlet){
        this.outlet.add(outlet);
    }

    public List<OutletManager> getOutletManager() {
        return outletManager;
    }

    public void setOutletManager(List outletManager) {
        this.outletManager = outletManager;
    }  
    
    public void addOutletManager(OutletManager manager){
        this.outletManager.add(manager);
    }
}
